Adding timer class to consolidate any potential setInterval and setTimeout problems