Update src/state.c file.