Renamed functions to conform to Ruby style guide