MACOP: Modular Architecture with Control Primitives