Fix the global data's access right was not setting issue
Merge branch 'global_data' into set_command
Create function "update_pid"