sblantipodi wrote:it all happen in the same loop,
Lets see some code, since something tells me you're not using an interrupt or you're just doing things wrong.
You need to create a timed interrupt for the stepper motor only, not both (you put the text in the normal loop).
Another possible option could be creating a state machine.