Accelstepper function

Does this work without the "while" as this is blocking and will mess up other functions?