Renamed some methods to make them more clear.