Attempting approach outlined in https://geonet.esri.com/message/174442#174442 - tweaked to v10.3