Added ability to change how variance propagation is done.