Added AJAX updating.