Fine tuning. Improved selection code, added dl_selectf.