Finish metadata generation