Added some debug information to read/merge