Optimized even more, as now bits which cannot have any value, are not being checked.