Changed stale check to seconds from millis