Fix use of $flags in Compute()
Merge pull request #178 from dpvc/patch-compute

Fix use of $flags in Compute()