Added template type to metadata.