Change to allow forward references to tasks - Issue #802