Moved taskq to use shared pointer as well