Added code for counties