Adding a refresh command.
Fixing the issue when command returns null.