Added virtemp test
Added virtemp function