Minor refactoring and debug output for PartitionExecutor