Adjusted to use new vTimer designand return errors correctly
Added const-ness for parameters