Added SAO algorithm and an option to select AO type