cleanKeys and minimizeKeys added.