Added logging to the initializer.