Added methods to CommonUtils

They come in handy across the code base