Moved the diagnostic handler back to invenio