This looks like a low limit. There should be a better way to protect against overflow no?