Add some debug logging.
Remove unused arg from loadFromCursor signature.