public static function run($name, $data = array(), $useMasterKey = false)
    {
        $sessionToken = null;
        if (AVUser::getCurrentUser())
        {
            $sessionToken = AVUser::getCurrentUser()->getSessionToken();
        }
        $response = AVClient::_request('POST', '/functions/' . $name, $sessionToken,
            json_encode(AVClient::_encode($data, null, false)), $useMasterKey);

        return AVClient::_decode($response['result']);
    }