Another attempt, now redefining PromptManager; unfinished.
Still has some problems