First version of FIFO implemented