Added various utilities.