Implemented AJAX requests.