Selectable function (not finished)
Merging