Changed $ to # in code gen