Strip out unnecessary stuff.