Add support for switching runlevels.