Optimize extension support.