Update tune_code