FileController Refactored so multiple files could be used