Guard and test against overflow