Added base class for tasks.