Added a FileLoaderSource, fixed bugs and improved performance.