Small utilities (to be published as a separate crate)