Data gets now cleaned for duplicate entries. Put queue stuff in separate script.