Added limiting of final output samples.