Beginning of queens procedure