Start moving state handling to separate thread.