Added selectionId param to create a new input representing the selection.

Closes #7.