added lfsr check, probably not correct so work in progress.