Updated settings module to handle maintenance mode.