Adding naming with PID
Removing debugging information.
Adding conditional if the transfer is successful