Renamed upper functions for error handling.