New method parseCode added