Moved cwd to params for internal testing. yey -_-;;