Should fix #3

(Fatal error: Using $this when not in object context with php 5.3)