Corrected parser code