Added support for multiple commands.