Renamed private methods to clarify that they modify the provided parameters