Add the stateful-home permission
Refactor run command