Completed implementation of elf task selection.