Updated to support changes in Rust, including clid in the clientlist.