Begin work on parse function