Fixed script writing for BCAM-BCAM