Fixed #57: Apparently you cannot use $this inside of an anonymous function, which makes sense.