Added util functions.