setInterval added

Was using timeout instead of interval. Caused issues.