Making sleep param optional