Added basic I/O management to load files.