Added the code to ignore entries older than 5 minutes