Added logging for fit2d