Switch to using a timer to update duration