Added simple variance calculation.
Added simple variance with block calculation.
Minor refactoring of yield calls.
Added nil checks