Added FIFO thread. Currently doesn't work.