Atmosphere-Corrected Phase-Referencing