Made loadRecord a public method.