Finished algorithm section.