Working on check_state file