Better bit mask testing.