Added shift value functionality