Improving proxy.php