Removed break from fifo method. Read the comments in the code for needed fixes.