Removes useless tasks