Added record factory