Update rmapi.class.php