Implemented the file loader in code