Stacked algorithm improvements.