Read lines one at a time, not all at once
Add methods for getting associations and chains