Separated background and popup logic.
Proof with Attempts