Updated to fix logic behind exchange and queue creation if there are pre-existing items.