Added print to SD logic