Adding the parsing function