Updated due to changes made in the algorithm repository.
Amended to reflect changes made in bson repository.