Added activation code generation