Update so it works for 1.1 and up.
Merge pull request #1 from nibrobb/patch-1

Update so it works for 1.1 and up.