Wrote a way to simulate at regular intervals