[tools] The wait_period argument was not propagated correctly. Fixed.