Updated code to follow new Cycles implementation in alasc.