Added usage of isFIN flag.