Updated the unrolling in the main training script.