Completed the loop so split logs are fed back, lots of debug in place