Renamed methods to match JavaScript conventions.