Prefer the new selector over the deprecated one

Tweak as suggested by myself in issue #12
Removed unnecessary braces
Merge pull request #13 from mac-cain13/patch-1

Prefer the new selector over the deprecated one