Contains the main control logic of Trace Builder plug-in.