Added maintenance mode, fixes #25