Added some functions.