Added the code for the activator