Remove unwanted bits