Added Application and scheduledexecutor to repeat tasks