Would it make sense to have default values for the window and max_thresh parameters?