Added working directory option.