Added DEBUG variable for debug printout