Added threading for change domain state check