Updated to work without redis, and to log.