Pumps with electronic control