Made this functional, need to make file loading dynamic