Algorithm tested.