Catch zero division and used declared variables. Really should have tested that last commit