Add metadata to results