Added various functions.