Add safe method to wrap peripherals