Global needed to access base_url variable, fixes warning