Added CreateOp function