Cleanup math