Added separate flags for determining whether op has been processed