Bug fix: Allow callback to be undefined.