Add load file functionality.