Fixed up algorithm description