State juggling works really nicely. Also added rough sketches for resource and settings handling.