Moved configure.php logic into controller
Removed configure.php dependency