Parser bug was causing main function skip