Changed to defineProperty for security