Added calculation of tracked X, Y.