Refactored threading commands