Use bit comprehension instead of list comprehension