Settled on a simpler way of handling popups, implemented console commands.