Bug #2, ensure return value is integer.