Using threshold detection function instead of half normal.
Allowing scale factors to be passed to se.correct fits.