Adding access function for X and Y and M