Clean newlines
Improve traces on batch retrieval