Finished parsing function