Switched to logger object.