Remove BES and calculate the pid manually.