Modified Debug functions