Added set methods for X and Y.