Imported learning algorithm from old Astranza.