Fixed issue with non-integers being passed.