def METHOD_NAME(name: str, name_list: List[Optional[str]]) -> None:
    while None in name_list:  # clean out null entries from a bug
        name_list.remove(None)
    if name in name_list:
        # Ensure order is maintained without duplicates occurring
        name_list.remove(name)
    name_list.append(name)
    while len(name_list) > 20:
        name_list.pop(0)