Corrected parsing bug ; give unique identifiers to functions.