def add_defaults(original, defaults, prefix=''):
    """
    Add defaults to original dict if not already present.
    """
    for name, value in defaults.items():
        if prefix + name not in original:
            original[prefix + name] = value
    return original
