Corrected parsing error due to missing function