Added some print lines to debug