Almost working - FCFS queue doesn't work right