Complex generation as in scp cb Finalize the script and add this Improvements: