Additions to utils.