Pulling out location-based code on the iOS side. (forgot that was in there)