Reset to last position, not to the beginning
Move initial wait to a separate loop