Changed a function name from "select()" to "selectTask()" and removed a redundant line of code from it."