WIP: Stopped at text processing block refactoring in app.py