Wrote better PID handling. Fixed change in destination issue