Updating loop to give higher granularity