Consolidate preprocess funcs.
Name parameters.
Remove superfluous threshold calculation.