Add better logging statements (include PID)