Added option to sweep along either the x, y or z axis.