Added shift argument to codeer