Optimize for macro