Added debug messages to the constructors