Calculation can be done with a shift in the patch center

This is to estimate the st-dev (which is calcualted)
Bug fixes.