Support WSD to work as script that can be distributed