setting interval to 5 seconds