Added some debug code to help me figure out how to write custom data after the constructor is called