Removed thread waiting in favor of the get state command.