Add code from 1st comment in issue 2 of Stju/extdirect project on github
Add code from 3rd comment in issue 2 of Stju/extdirect project on github