Functions for stochastic volatility model.