Minor update in the example.
Added global DEBUG variable.