Support for activation/deactivation hooks