Wrapped up the parsing code