Added setRecordId method