Added array shift functions.