Added shifter functionality to code