Removed redundant products key. #857
Readded products key. #857
Simplified foreach