Creating CCD from file writing working inside flow control, but there is a problem when parsing a block inside a block