Don't need to initialize shift as undefined