Adding some functions.