Now using integers and not doubles