Added the ability to choose the order of the scanned axes for higher dimensional scans.