Renamed methods to follow java's standard.