Split parsing functions into seperate file.