Added sleep before ActiveDirectory