Added some very basic error handling for the custom scramblers.