Added popup message in GUI to request user input. Added regenerate loop thread. Problem is that a separate regenerate loop thread can't do the callback to the gui. I will solve this problem now with a separate loop in the GUI that looks for messages and pops them up.