Clean the pipe ends, remove any debris, and ensure the pipe ends are square before fitting the flange.