Adds new setX and setY methods.