Patched functionality for ST2
Merge pull request #3 from twolfson/bug/not.working.in.st2

Patched functionality for ST2. Fixes #2