The sample($sampler) argument is now optional.

As usual in other API.