About 50 times faster than the Python version. Extended trace functionality still untested. Change-Id: I9e41b0283b7d3274c5ea9eba2164f78c04c1ad42
Change-Id: I865266c93bdab1c01d625a0ef50c4d9a0ccf7ba5