Adding console logging.