I think just returning "var + shift" would do the same.