Added Expect Command to compute expectation values