Adding Code for QS Shift

Still working on extents.