Adopted for d2tasks