Added debug log messages to factory constructor methods.