Refactoring : Frequently used functions to make a static function in Utils.