Added rectangle selection.