Moved debug to separate program