Modified mobile functions to also rely on settings.php.