Few fixes for the latest rust, add another function to hl.rs.