Add full function to parser.rb