Added process id logging and heartbeat

removing duplicate call/copied logs