Renamed function and removed print debug message.