Command thread running