Added various functions