Add sample shifter logic.