Protect against strings being passed into int()