Added setter for activated state.