Smart drug