New API for setting next state