Tweaked backstretch function