An autonomous device that may include for example a camera, a transmitter for transmitting a signal from the camera and a storage compartment for retaining a substance in the device. A method of delivering a medicament to a patient including imaging a gastro intestinal tract with an autonomous device, identifying a target location in such tract, and releasing a medicament from the device at the target location.