Updating part about generating metadata