Moved parse code to parse.go