Refactored Command to include CommandDetails.