-Adding environment handling based on the URL(Could be done better).