Changed how file works