Reachability, basic IAP, most code written for reindenting