Take $sleep param for the Sleep call