         long int copy_shift_x = shift_x;
         long int copy_shift_y = shift_y;
 
-        std::cout << "offset_x " << offset_x << " offset_y " << offset_y << std::endl;
-
-        std::cout << "length_x " << length_x << " length_y " << length_y << std::endl;
-
-        std::cout << "shift_x " << shift_x << " shift_y " << shift_y << std::endl;
+        //std::cout << "offset_x " << offset_x << " offset_y " << offset_y << std::endl;
+
+        //std::cout << "length_x " << length_x << " length_y " << length_y << std::endl;
+
+        //std::cout << "shift_x " << shift_x << " shift_y " << shift_y << std::endl;
 
         iter = predecessor1;
 

            iter = fp->layers[iter]->predecessors[0] - 1;
        }

        std::cout << "offset_x " << offset_x << " offset_y " << offset_y << std::endl;
        std::cout << "length_x " << length_x << " length_y " << length_y << std::endl;
        std::cout << "shift_x " << shift_x << " shift_y " << shift_y << std::endl;
        std::cout << "copy_offset_x " << copy_offset_x << " copy_offset_y " << copy_offset_y << std::endl;
        std::cout << "copy_length_x " << copy_length_x << " copy_length_y " << copy_length_y << std::endl;
        std::cout << "copy_shift_x " << copy_shift_x << " copy_shift_y " << copy_shift_y << std::endl;

        if(copy_length_x > length_x)
        {


    if(num_chunks > 1)
    {
        //std::cout << "Number of chunks " << num_chunks << std::endl;
    }

    return num_chunks;
