--Adding need_optimized flag in resource form