StateDevice -> Attempt to make the main Command method threadsafe.