Preliminary development. Functions to insert and remove from queues already tested and seem to be working. Next thing: swait and syield.