Added check for needed commands.