Little more clean up for hooks.php