Moved volume construction params to a structure.
Implemented logging callback.