Added record selector extraction, fixing #3.