Including API request logic and Ajax calls.