Corrected Client script