Try passing the client object as the userdata