Minor bug fix.
Added print callback.