Added an input queue as well!  All this will need parameterising and tweakable from command line options. Introduces loads of latency at the moment