Environment-configurable default algorithm