Simplify the parsing function.