Changing the assert to a log.