#154: Workaround possibility of `algorithm` being undefined