Optimizing CRF Design