Instrumenting based on task config.
Adding internal task.