public void stop() {
   if (timer != null) timer.stop();
 }