Add optimization patch