Inlining and added checkBit, updated todo