Bringing everything up to date
added effective sample shifting function