Implemented overflow handling using limits.h, not technically required, but eliminates edge cases.