Added Redis handling