Refactor. Dog-nailing graphical manager. Preparing logic.