Broke out util functions to the utilService.