Require predispatch in index.php