Finetune code according to the specification.