Removed volatile keyword from queues, since it's not needed and slows things down