Medical devices and methods are disclosed. An example medical guidewire for accessing a body lumen along a biliary and/or pancreatic tract may include an elongated member having a distal end and a proximal end. The guidewire may include a movable distal tip positioned at the distal end of the elongated member. The guidewire may also include an electromechanical actuator for actuating movement of the distal tip. The actuation of the electromechanical actuator actuates movement of the adjustable distal tip and facilitates cannulation of one or more of a bile duct and a pancreatic duct.