Changed plain pointer to unique_ptr for Inpsector::task_checker_