Add some util methods