Moved it to a function. Allows multiple scramblers to be created.