Changed the Getactivated method.