Optimization of structure to improve function