Replaced setInterval with setTimeout (dumb mistake).