Removing unnecessary bits