Implemented forward-compatibility for using ee() in place of $this->EE