Add separated function for adding node to readyQueue