 Electronic devices are expensive and have been used in the context of research. MEMS cap was such a device which registered every time the bottle cap was removed. Patients may remove more than one dose at a time, open the cap and not take the medication or engage in pill dumping. 