Added algorithm prototype.