Added --pid-file option.