Removed check_state_file