Parser moved to main() function