For the transparency issue, implemented a switch-case for the bitcount