Making sure the scope remains consistent in how it access files