Improves Task equality check