Added a bunch of AJAX.