Proper support for pickling models
Changed logging