Added AJAX support.