Wrote draft of records filtering