I made a gate latch the other day and installed it on a store bought heavy duty pipe gate on the corral. I bought two of the hinges that swing on the hinge pins. I placed them on a horizontal member of the gate (the one the chain latch is on). I ran a 5/8 inch steel rod through the hinges. I bent the end of the rod into an "L". I intend to weld a washer on the rod between the hinges to act as a stop. The end of the rod slides between the gate post and a vertical 2x6 nailed to the vertical boards on the corral. It's a lot quicker and safer than messing with a chain.