Modified client study code.