Change loops to be a Long integer.