Removing unneeded parts