Resolved - stupid mistake. Those $ should be %