Slight speed improvement using integers