Added 2 utilities functions.