Improved task duplication avoider