Removes uncessary links