Added file loading functionality