Added --pid option.