added the missing line and some outputs to let the waiting not so
frustrating