Updated bits printing code