Replacing get(0) with iterator().next()