Keep the function, @pjackson move debug to another file