Algo 7 & 8 added.