Hastings and Adams County reach emergency service agreement