Added support for result tracking.