Add pid option so it can be used in monitoring tool