Add logic for Redis queue