Updated client script