New: groundingbeforesleep