Debugging tools refactored as class. Added one time logging to improve performance and time interval between log calls to discover critical points.