Changes needed for asynchronous callbacks.

Originally they were synchronous, now they are asynchronous. It's still
not well tested, thus the branch.
Adding missing variable initialization in constructor.
Removing debugging printf.