Added command thread