Implemented variable spreading amount in the decoder