Removing unneeded modules