added optional algorithm flag