Added debug prints for adapter.