Here I laid down the principal procedure. It’s already a few years old, but the procedure hasn’t changed a bit: