ENH: Changed threshold as static. Fixed bad indent.