Clarified used algorithms a bit.