New, better interface
Add a logging feature for offline data mining