Added debug pritning to submodule