Add send command and refactored command factory.