Added statements to the functions