Added functinality to talk to redis