Add functions for delta x and y