Change debug to false and move global declaration to avoid warnings