Commented the toCode function