Add selection threading functions