Added debugging output relating to recrypting legacy files