Added the sub keys iteration