What does this do? I see a lot of bit manipulation.