heh I dont understand the code coz I am pretty bad in programming. Isnt it easier store two variables like

var1 := sequence from two hours ago
var2 := max(sequence)

then say

file_seq not between var1 and var2 :-?