Finalized structure, started GUI vs. loop part