Added existing peg code