Spliting loops between devices (debug output for the time being)