Should be $this->hash here, not $this->$hash