Added util function