Updates and math error fixes.