Updated bit setting/unsetting to be faster via bit manipulation.