Fix code to allow for user control of both x and y axes.