Added cwd option