Clean up of exisiting results.php script