added Query interval field & constructor