Added queuing

fixed update and insertInto