Made some functions.