Add variance calculator in emulator