Added Record.pm and functionality