Function

Changed the code around so the files are read by functions