Recalculating every five frames breaks a lot of things