Added in some code to make the API_URL an process value