Adding some functions