Changed timer to scheduled executor service for better performance.