Use entrySet for better Performance.