Added record(). Upgraded version.