Added the center threshold as another variable to manipulate when doing multiple passes