Add Utility function

Change-Id: Ic5316765d3db48351a9feaa9b3cce286d256071e