Our objective was to manufacture an effective topical formulation containing loperamide using liposomal delivery that would allow loperamide to produce analgesia and anti-inflammatory effects , by penetrating the epidermis to reach peripheral opioid receptors within the dermis of intact skin .