Add core support for runlevels.