Refactored ServerConnection to Command package