Removed unnecessary key iteration