Looks like you aren't using the lastrun_offset on this function, are you? Can it be deleted?