Added checks to new client.sh