Added called function for the first activation of a state.