added a time manager for periodic events