Implementation of a Queue continue