Convert runSteppersToPos() to work with a variable number of axes. It's vitally important that this function works correctly.