Refactor to take one structured argument
Example data in docstring
Filter out actives
Using appropriate name
object assignment
More changes