Is it really needed :? If it is, would worth to add a code comment explaining why. Also Rex::sleep should be used.