These helper methods need docstrings explaining what they do, including the types of each argument and return value.