This is cross-posted on Stack Overflow and there appears to be an acceptable answer but not marked as solved. Nonetheless, it's at:
This is cross-posted on Stack Overflow and there appears to be an acceptable answer but not marked as solved. Nonetheless, it's at: