Finished writing, now a lot of debug