Add some helpers

I think that they are generic and quite useful.