Moved file loading to InputLoader class.