Removes useless things.