Fixed a bug where you would get an exception due the the queue not being
thread safe. CHanged from LinkList to CopyOnWriteArrayList