Added deprecation warning to exec_command.