Added asynchronous getting for AJAX.