Added the unrecognised state to app.py