Common code between snoozeclient and snoozenode