Changed Timer to ScheduledThreadExecutor