Would be nice to add a docstring and explain what each argument means.