Make a function of the parsing.