Made functions to not be static in Parser class.