Simple changes to prevent SS3.1 throwing compatibility errors.
Merge pull request #2 from artofthem/ss31

Simple changes to prevent SS3.1 throwing compatibility errors.