Add check for sex, add Referral column.

Add check for sex, add Referral column.