Select threshold from parameter
Add second part