Added function to iterate over checked keys.