Fixes UI freezing

Push groups of calculations to background thread, this avoids the memory spiraling i was seeing earlier