Added conditional logic to only modify destination files if they're in team