A drug delivery device comprises drug expelling means and a drug-filled cartridge, the cartridge comprising an outlet and an axially displaceable piston. The drug expelling means comprises a drive member adapted to engage and axially move the piston to thereby expel an amount of drug from the cartridge through the outlet, and a motor for moving the drive member. The device further comprises a display adapted to display a dose amount to be expelled, communication means allowing dose setting data to be received from an external device, and an electronic controller adapted to store received dose setting data, control the display, and control the motor to move the drive member to thereby expel an amount of drug corresponding to a set dose.