Moving logic out of condition variables
Adding pubsub support to Redis plugin