Removing extra bits