Fix math errors in the vtimer delay loop, now vtimer works