Some syntax changes. Used improved fileloader.