Thanks guys!!
I´ve just tested here during my lunch break and that way works fine. My way also works but needs improvement.
This wait_for() is interesting and I wasn´t aware of it...