Add system callbacks, support hibernation.