Updated Rust hooks