Removes redundancies