Macro with loop and waiting time