Added some print lines for debugging