Fixed bug where stuff for PID was not being set.