Change function new_client