Added 'profile' and 'working-dir' options.