Adding debug function initial commit