Fixed recommendations key redefinition

Per pull-request #1
Changed arguments loops back to native for loop

Per pull-request #1