def enact_interventions(background_inmate_turnover, background_release_number, time, infected_list, release_number,
                        social_distance, social_distance_tau, stop_inflow_at_intervention, tau):
    """Enacts specified interventions."""
    # Print intervention info
    print(f'Release intervention condition met:\n\tTime: {time}\n\t# of infected: {len(infected_list)}')

    # Release intervention
    r_n = background_release_number
    if release_number:
        print(f'\tReleasing {release_number} inmates.')
        r_n += release_number

    # Stopping-inmate-inflow intervention
    if stop_inflow_at_intervention:
        print('\tStopping inmate inflow.')
        background_inmate_turnover = 0

    # Social distancing intervention
    if social_distance:
        print('\tEnacting social distancing.')
        tau = social_distance_tau

    return background_inmate_turnover, r_n, tau