Starting to test Buffer. Added more bit manipulation logic.