Optimize framework