Old file tagging code