Corrected a bug, function names for loop and init functions were wrongly parsed.