Scrambled Code for NAMDEE