A device (8) for insertion into an organ of a patient includes a capsule body (12)and one or more arms (10), which are attached to the capsule body and are arrangedto expand from the capsule body at a desired location in the organ so as to contactan inner surface of the organ and anchor the device at the desired location.