Removed assignment to unused variable min_observations_required
Removed unused global variable last_computed_settings