Add endX and endY