Added Reachability code