Added dictionary looping