Added reduce-safe arithmetic functions.