Wrote firstAvailableID and deleteClient