Update revbits function