Changed the way reading happens to read action from the queue