Implement dx and dy as output on grid