It would be good to add a docstring which explains what each argument means.