Add scheduledThreadPool to handle task