Refactored subcommands.
Workaround to wait til the instances get ready.