First queue implementation