Added writiung to fifo