Changed processing script from index.php to main.php