Had trouble working with async callbacks for parsing, but got a basic solution working for parsing the input.