Some extra functionality for UnsafeUtil

Signed-off-by: Ross Allan <rallanpcl@gmail.com>