Added more debug print lines