Reuse locations.length