Use prepare_command in NRGramKit