Optimizes the parsing routine