Setting up queue