Fixes #26 - using $this not in object context