Replaced setInterval with setTimeout (and appended setTimeout to each called) to enable altering interval while running