Final lookup.php