Make defineProperty a private function