Fixed the bitwise shift part
Was thinking wrong for the bitwise unpacking