Removing unneeded sections