Yes, some other commands about inspector also need to be added.
So I split to a single function.