Removed workDir global var (added later again)