You might report data->state instead of a static 0