Fixed setInterval value to 1 second from 1 millisecond