Tidied code and tweaked the die flag to allow the same queue to constantly be used. To test further uncomment the line in run which returns the queue size.