Added some print lines for debugging purposes