Add Debug and Log Control