Factor out relation read
Improve printing