Added some error checking for Shift