Refactored connection-creation logic
Added methods to append commands during connection creation & removal