Transferred data fetching to an external PHP script for easier changes.