Changed number->bit functions to manipulated unsigned integers again.