Using attach() and detach() function on a stepper motor with a easy drive.

I'm using a program where the stepper motor moves a cart with cup etc, etc, etc

So why do you want to attach() and detach() the stepper ?

Why do you keep attaching and detaching the servos ?

attach() them is setup() then leave them attached