Similarly, I think we want a check that limit is an int.