Print function and more debug