Moved debug to lightbox, no longer called if not in debug