Remove unwanted lines