Regulation B requires a creditor that receives an application for credit primarily for the purchase or refinance of a dwelling occupied or to be occupied by the applicant as a primary residence, when that dwelling is to serve as the security for the credit sought, to collect information about the race, ethnicity, sex, marital status, and age of the applicant.349 This information is intended to assist private plaintiffs and government enforcement agencies in determining whether differences in treatment due to a prohibited basis have occurred.