getSelection added to issue #1.