Better overflow checking.