Added resetTask contract functionality