Added simple cycle detection for unevaluated tasks.