Finished parse function