Testing
Moved FIFO purging around
Basic working structure