API works for all commands.