Rename and populate metadata