Optimize building