Works for 2 elements.