Iterate over dictionary properly.