Add exec_command method