A comparison of CME expansion speeds between solar cycles 23 and 24