Adds reporting for-each function.