Renamed functions and arguments to further clarify.