Removing use of browser in Timer class