Handling of sub-commands