Removing unneccessary parts