Work on lazy loading.

Lazy loading currently also clears records.