Refactored recordset.php.