Tweaked apply.php with some comments