Change to synchronous AJAX.