Tuned Codes