Adding the functions