Add is activation and is deactivation functions