Renamed two methods to make them easier to understand