Removed the use of interval and instead using an automatically restarting timer