You need to start your own thread and identify the state.