Added dxi and dyi to grid