Added flush rewrite rules on (de)activation.