Added functions to the files