Add guard to Pid manage clause in order to differentiate it from the Port clause.