Working on the AJAX callback functions.