Fixes.
Move calculations to the background.