Changed entryArray() to entrySet()