Made AJAX activity management work.