Switched back to using the ZD keyword for zenith distance. Potentially fixed the issue in ConvertToExtensions.