Merge "Set basic framework for detecting reductions." am: 785e355568
am: b0a65f81ae

Change-Id: I8e8d73a6f6796e5015801f636739f443baa549af