Added mising $ to resolve variables (do not commit in haste next time Peter)