Changed the shfit out routine a little.