Added GetAlgorithm() method.