Added scrambler code.