Optimize with inline code.