Edit selected.
First basic working model.

Needs to be tested yet.