Many changes. Added redis.