Added the functions