Added the code to create the rnc file
remove debug