Adding activation hook