Completed changes to use redis.