Records class + bug fixes.