Use a slider for setting the k threshold.
Add missing sources.