Is there maybe a d-Bug routine that could accomplish this ?