Implemented metadata generation.