Added API call
Added StartX and EndX to the PolyGen tool