Moved help to top of workflow: prevents errors if indexing or database is down.
Added maintenance flag