Finalized generalizes tuning code