Adding logic needed to init and update the state.