SD: Added an automatic client. Try catch exceptions