Added structure for AJAX.